package a.f.g.a;

public class eb
  implements lc
{
  protected double a;
  protected double b;
  protected int c = 2147483647;
  protected long d = 30000L;
  private double e;
  public static int f;
  
  public eb()
  {
    this(0.03D, 0.02D);
    this.d = 30000L;
  }
  
  public eb(double paramDouble1, double paramDouble2)
  {
    this.a = paramDouble1;
    this.b = paramDouble2;
  }
  
  public double a()
  {
    return this.a;
  }
  
  public void a(double paramDouble)
  {
    this.a = paramDouble;
  }
  
  public double b()
  {
    return this.b;
  }
  
  public void b(double paramDouble)
  {
    this.b = paramDouble;
  }
  
  public int c()
  {
    return this.c;
  }
  
  public void a(int paramInt)
  {
    boolean bool = xb.r;
    if (!bool)
    {
      if (paramInt == 0)
      {
        if (bool) {
          break label30;
        }
        this.c = 2147483647;
      }
    }
    else if (xb.q == 0) {
      return;
    }
    label30:
    this.c = paramInt;
  }
  
  public long d()
  {
    return this.d;
  }
  
  public void a(long paramLong)
  {
    boolean bool = xb.r;
    if (!bool)
    {
      if (paramLong == 0L)
      {
        if (bool) {
          break label33;
        }
        this.d = 9223372036854775807L;
      }
    }
    else if (xb.q == 0) {
      return;
    }
    label33:
    this.d = paramLong;
  }
  
  public double b(bb parambb)
  {
    boolean bool = xb.r;
    if (!bool) {
      if (a(parambb)) {
        return 1.0D;
      }
    }
    if (parambb.e() < 1) {
      this.e = 0.0D;
    }
    double d1 = 1.0D - this.a;
    lb locallb = parambb.d();
    double d2 = (1.0D - locallb.i()) / d1;
    double d3 = 1.0D - (this.a + this.b);
    double d4 = (1.0D - (locallb.i() + locallb.j())) / d3;
    double d5 = 1.0D - this.b;
    double d6 = (1.0D - locallb.j()) / d5;
    double d7 = d2 * 0.4D + d4 * 0.5D + d6 * 0.1D;
    d7 *= d7;
    double d8 = 0.0D;
    if (((bool) || (this.c > 0)) && ((bool) || (this.c < 2147483647))) {
      d8 = parambb.e() / this.c;
    }
    double d9 = Math.max(d7, d8);
    double d10 = 0.0D;
    if (!bool)
    {
      if (this.d > 0L)
      {
        if (bool) {
          break label280;
        }
        if (this.d < 9223372036854775807L) {
          d10 = parambb.g() / this.d;
        }
      }
      d9 = Math.max(d9, d10);
      this.e = (this.e * 0.6D + d9 * 0.4D);
      d9 = this.e;
    }
    label280:
    if (!bool)
    {
      if (d9 < 0.0D) {
        d9 = 0.0D;
      }
      if (bool) {}
    }
    else if (d9 > 1.0D)
    {
      d9 = 0.9999999000000001D;
    }
    return d9;
  }
  
  public boolean a(bb parambb)
  {
    boolean bool = xb.r;
    if (!bool) {
      if (parambb.d().m().j() >= 2)
      {
        if (bool) {
          break label98;
        }
        if (parambb.g() <= this.d)
        {
          if (bool) {
            break label98;
          }
          if (parambb.e() < this.c)
          {
            if ((!bool) && (parambb.d().i() >= this.a)) {
              break label101;
            }
            if (bool) {
              break label98;
            }
          }
        }
      }
    }
    label98:
    label101:
    return parambb.d().j() < this.b;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.a.eb

 * JD-Core Version:    0.7.0.1

 */